package com.lzy.cloud.base.remote;

import com.lzy.cloud.base.remote.dtos.SmsDto;
import com.lzy.cloud.base.remote.request.TmpSmsSendRequest;
import com.lzy.framework.core.output.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description: 短信接口
 * @Author:   gyl
 * @Date:     2018/7/9 15:20
 */
@FeignClient(name = "lzy-cloud-sms")
public interface SmsApi {

    /**
     * 方法说明：发送短信
     * @param 
     * @return
     * @date        2018/7/9 15:21
     */
    @RequestMapping(value = "/sms/send")
    Result send(@RequestBody SmsDto smsDto, @PathVariable("id") String param);

    /**
     * 新增待发送短信
     *
     * @param tmpSmsSendRequest
     * @return
     */
    @RequestMapping(value = "/tmp/sms/send/add",method =RequestMethod.POST)
    Result add(TmpSmsSendRequest tmpSmsSendRequest);

    /**
     * 根据条件更新待发送短信
     *
     * @param tmpSmsSendRequest
     * @return
     */
    @RequestMapping(value = "/tmp/sms/send/update",method =RequestMethod.POST)
    Result update(TmpSmsSendRequest tmpSmsSendRequest);

    /**
     * 查询待发送短信/推送列表
     *
     * @param tmpSmsSendRequest
     * @return
     */
    @RequestMapping(value = "/tmp/sms/send/list",method =RequestMethod.GET)
    Result selectList(TmpSmsSendRequest tmpSmsSendRequest);
}
